package edu.scau.pos.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
@Data
public class SaleLineItemVo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Schema(name = "productSn", description = "商品编号", type = "String")
    @NotEmpty(message = "商品编号不能为空")
    private String productSn;
    @Schema(name = "quantity", description = "商品加购数量", type = "int")
    private int quantity;
    //从product取
//    @Schema(name = "price", description = "商品单价", type = "double")
//    private double price;
}
